package lesson14;

public class Person {
	String name;
	int age;
	String personalNumber;
	char sex;
	double weight;
	Person friend;
	int starvationStatus = 50; // from 0 to 100
	int health = 50;
	int mentalStatus = 50;
	int numberOfOwnedCars = (int)Math.round(Math.random() + 1);
	
	void eat(int foodVolume){
		if (starvationStatus+ foodVolume>100) {
			starvationStatus = 100;
		}else
			starvationStatus+=foodVolume;
	}
	
	void walk(){
		System.out.println("I am walking ");
		starvationStatus-=5;
	}
	void growUp(){
		age++;
	}
	void drinkWater(double liters){
		System.out.println("i am drinking");
		starvationStatus +=liters;
	}
	
}
